/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package mygame;

import javax.vecmath.Vector3d;
import mygame.components.PositionComp;

/**
 * test entity 
 * @author jonas
 */
public class testEntity implements CollisionObject{

    private String id;
    private PositionComp position;
    private double boundingRadius;
    private boolean isStatic = false;
    private boolean isPlayer = false;
    private boolean isColliding = false;
    
    public testEntity(String id, double radius){
        this.position = new PositionComp();
        this.id = id;
        this.boundingRadius = radius;
    }
    
    
    public void setPosition(PositionComp position) {
        this.position = position;
    }

    public PositionComp getPosition() {
        return this.position;
    }

    public void setBoundingRadius(double radius) {
        this.boundingRadius = radius;
    }

    public double getBoundingRadius() {
        return this.boundingRadius;
    }
    
    public String getID(){
        return this.id;
    }

    public boolean isPlayer() {
        return this.isPlayer;
    }
    
    public void setPlayer(boolean isPlayer){
        this.isPlayer = isPlayer;
        this.isStatic = !this.isPlayer && this.isStatic;
    }
    
    public boolean isStatic(){
        return this.isStatic;
    }
    
    public void setStatic(boolean isStatic){
        this.isStatic = isStatic;
        this.isPlayer = !this.isStatic && this.isPlayer;
    }
    
    public boolean isColliding(){
        return this.isColliding;
    }
    
    public void setColliding(boolean collides){
        this.isColliding = collides;
    }
}
